#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "led.h"
#include "pwm.h"

int main(void)

{
	int encoder;

	u32 t=0;

	uart_init(115200);

	encoder_tim3_init();

	delay_init(84);


    while(1){

		encoder = read_encoder();

        printf("t:%d\r\n",encoder);

		delay_ms(1000);

		t++;

	}

}
